package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.CaseInfo;
import cn.wolfcode.crm.domain.CompensationInfo;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface CaseInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CaseInfo record);

    CaseInfo selectByPrimaryKey(Long id);

    List<CaseInfo> selectAll();

    int updateByPrimaryKey(CaseInfo record);

    int queryCount(QueryObject qo);

    List<CaseInfo> queryList(QueryObject qo);

    void checkCase(CaseInfo caseInfo);

    void needAudit(CaseInfo caseInfo);

    void auditCase(CaseInfo caseInfo);

    void payMoneyCase(CaseInfo caseInfo);

    CompensationInfo selectCompensationInfoById(Long compensationInfoId);
}